cmake_minimum_required(VERSION 3.15)
project(BoxPusher)

set(CMAKE_CXX_STANDARD 14)

add_executable(${PROJECT_NAME} WIN32 main.cpp src/FileUtils.cpp src/Stage.cpp)

if(MY_MSVC_RUNTIME STREQUAL "MT")
    message("Setting MT(d)")
    set_property(TARGET ${PROJECT_NAME} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
elseif(MY_MSVC_RUNTIME STREQUAL "MD")
    message("Setting MD(d)")
    set_property(TARGET ${PROJECT_NAME} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
else()
    message("Setting MT(d) (default)")
    set_property(TARGET ${PROJECT_NAME} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()

target_include_directories(${PROJECT_NAME} PUBLIC
        include)
target_include_directories(${PROJECT_NAME} PUBLIC
        GameLib/include)
target_link_directories(${PROJECT_NAME} PUBLIC
        GameLib/lib)
target_link_libraries(${PROJECT_NAME}
        GameLib_d)